﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace classappproject
{
    class Common
    {
        public static ChatAppLib.User GetLoggedUser(System.Web.UI.Page page){
            ChatAppLib.User user = page.Session["_loggedUser"] as ChatAppLib.User;

        return user;

    }
    public static void SetLoggedUser(){
        System.Web.UI.Page.page ChatAppLib (User user){
            page.Session["_loggedUser"]=user;
        }
    }

}
